package com.pearl.generator.pojo.vo;

import com.baomidou.mybatisplus.generator.config.po.TableField;
import com.baomidou.mybatisplus.generator.config.rules.IColumnType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Map;

/**
 * @author TangDan
 * @version 1.0
 * @since 2022/8/5
 */
@Data
@ApiModel(value = "TableFieldVO对象", description = "表字段信息")
public class TableFieldVO {

    @ApiModelProperty(value = "是否主键")
    private boolean keyFlag;

    @ApiModelProperty(value = "主键是否自动递增")
    private boolean keyIdentityFlag;

    @ApiModelProperty(value = "字段类型")
    private String type;

    @ApiModelProperty(value = "字段注释")
    private String comment;

    @ApiModelProperty(value = "是否关键字")
    private boolean keyWords;

    @ApiModelProperty(value = "数据库字段（关键字含转义符号）")
    private String columnName;

    @ApiModelProperty(value = "元数据信息")
    private TableField.MetaInfo metaInfo;
}
